#include <iostream>
#include <map>
#include <string>
#include <iterator>	// for ostream_iterator()
#include <libtorrent/entry.hpp>
#include <libtorrent/bencode.hpp>

using namespace std;
using namespace libtorrent;

int main()
{
	entry m;
	m["a"]=entry(10);
	m["b"]=entry("hello");
	m.print(cout);
	bencode(ostream_iterator<char>(cout),m);
	cout<<endl;
}

